Skip to main content
edited tags
Source Link
Karthik
  • 381
  • 3
  • 8
  • 33

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows the label2 in a straight line and its extending the size of the fieldset. And its not wrapping it as per the expected results given below.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the Expected output.

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows in a straight line and its extending the size of the fieldset.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the Expected output.

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows the label2 in a straight line and its extending the size of the fieldset. And its not wrapping it as per the expected results given below.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the Expected output.

added 4 characters in body
Source Link
Karthik
  • 381
  • 3
  • 8
  • 33

JSF wrapping the <h:outputLabel> text w.r.t to starting index of the its own in next line

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows in a straight line and its extending the size of the fieldset.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the above outputExpected output.

JSF wrapping the <h:outputLabel> text w.r.t to starting index of the its own

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows in a straight line and its extending the size of the fieldset.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the above output.

JSF wrapping the <h:outputLabel> text w.r.t to starting index of the its own in next line

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows in a straight line and its extending the size of the fieldset.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the Expected output.

Source Link
Karthik
  • 381
  • 3
  • 8
  • 33

JSF wrapping the <h:outputLabel> text w.r.t to starting index of the its own

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/>
Both labes are located inside a <p:fieldset>
label2 will get rendered based on the value in bean. label2 is getting wrapped in the next line but the wrapped text should start from the starting index of the label2 not from starting index of label1.

I tried <h:outputLabel style="white-space: pre;word-wrap: break-word;" />
but it shows in a straight line and its extending the size of the fieldset.

Actual result I am getting : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 Expected : label1:labellabel2label2label2label2label2label2label2label2label2 label2label2label2label2 

Please advise me to get the above output.