0 Replies Latest reply on Mar 22, 2011 5:00 AM by Syed Mahdi

    Seam JSF Xhtml screen: positioning inputTextarea with s:decorate

    Syed Mahdi Apprentice

      Hi All,

      I am trying to make a question and answer form: I have managed to put the question along the left margin but the text area where the user will write their answers come right in the middle. Or at least not with the margin. I have attached the jpegh of how it looks and how I am writing the xhtml page is below :

      <ui:repeat  var="ans" value="#{questnAnswerQuery.resultList}">
      <br />
      <h:outputText  value="#{ans.questionText}" />
      <p align="left"><b></b></p>
      <s:decorate id="answerid"  template="/layout/edit.xhtml"  style="align: left;">                                   <h:inputTextarea   value="#{ans.answertext}"
      required="true" style="align: left; height : 100px; width : 650px;">
      <a:support event="onblur" reRender="mainForm" />

      If i remove the s:decorate tag which is actually a seam tag then it aligns ok, the seam tag wraps around the inputtextarea to show any errors in red in case the validation fails. So if i remove that then it aligns but then there is no ajax validation. Is there a way i can have both.

      I will really appreciate that. I am not that good with UI and html.