List Info

Thread: output formatting ? ?




output formatting ? ?
country flaguser name
United States
2007-09-24 03:30:16
 Hi  

I m getting some text from and saving it to database
.....then while
displaying it using h:outputText 
the formatting  at the time of entering text is lost and
output is withut
carriage return 

<h:outputformat  escap="false" value
="#{dbget.gettext}"  />

is also not working 

What can be solution please reply 
-- 
View this message in context: http://www.nabble.com/output-formatting----
--tf4507760.html#a12855842
Sent from the MyFaces - Users mailing list archive at
Nabble.com.


validateLength and ajax4jsf don't work together?
country flaguser name
Germany
2007-09-24 03:59:49
Hi All...
My environment:
MyFaces 1.1.5
Tomahawk 1.1.6
ajax4jsf 1.1.1
jboss Aplication Server 4.0.5
IDE: netbeans 5.x
I try to develop a small application to learn more about jsf and ajax4jsf.
I faced an unexplainable problem.
When I use AJAX4JSF and in the same JSP <f:validateLength maximum="250" minimum="5" />, AJAX4JSF dosen't work.
It works when I use <f:validateLength maximum="250" /> (without minimum attribute).
Heer my JSP snippet:
....
&nbsp; &nbsp; <h:inputText value="#{user.textxyt}" >
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  <a4j:support event="onkeyup" reRender="rep"/>
 &nbsp;  </h:inputText>
 &nbsp;  <h:outputText value="#{user.textxyt}" id="rep"/&gt;

&nbsp; &nbsp; <h:outputLabel id="labelBez" for="Label" value="Label" />
&nbsp; &nbsp; <t:inputText id="Bezeichnungs" value="#{beanProc.name}"  readonly="#{!beanProc.beditable}" styleClass="textbox"&gt;
 ; &nbsp;  &nbsp;  <f:validateLength maximum="250" />
&nbsp; &nbsp; </t:inputText>

....
I can't understand what is the problem heer?
If anyone understand what the problem could be, please for a statment!
thanks...
naba

PS: there is not any server-output like error or warns!!
Re: validateLength and ajax4jsf don't work together?
country flaguser name
Germany
2007-09-25 07:01:28
Hi..
Who is interested in this issue..
The problem is, that the whole tree is processed... and so
the request 
will fail because the inputText will be validated and 5
chars are required..
I had to wrap the input I process with support - to
region!!
The answer comes from jobss-ajax4jsf-forum...
naba



NABA schrieb:
> Hi All...
> My environment:
> MyFaces 1.1.5
> Tomahawk 1.1.6
> ajax4jsf 1.1.1
> jboss Aplication Server 4.0.5
> IDE: netbeans 5.x
> I try to develop a small application to learn more
about jsf and ajax4jsf.
> I faced an unexplainable problem.
> When I use AJAX4JSF and in the same JSP
<f:validateLength 
> maximum="250" minimum="5" />,
AJAX4JSF dosen't work.
> It works when I use <f:validateLength
maximum="250" /> (without 
> minimum attribute).
> Heer my JSP snippet:
> ....
>     /<h:inputText value="#{user.textxyt}"
>
>              <a4j:support event="onkeyup"
reRender="rep"/>
>     </h:inputText>
>     <h:outputText value="#{user.textxyt}"
id="rep"/>
>
>     <h:outputLabel id="labelBez"
for="Label" value="Label" />
>     <t:inputText id="Bezeichnungs"
value="#{beanProc.name}"  
> readonly="#{!beanProc.beditable}"
styleClass="textbox">
>         <f:validateLength maximum="250"
/>
>     </t:inputText>/
> ....
> I can't understand what is the problem heer?
> If anyone understand what the problem could be, please
for a statment!
> thanks...
> naba 
>
> PS: there is not any server-output like error or
warns!!


Re: validateLength and ajax4jsf don't work together?
country flaguser name
United States
2007-09-26 00:44:32
hi NABA and All 

The issue is that i want the text to be shown in the format
it was entered
i.e. with carriage return and newline. The text got saved to
database with
that formatting but when i fetch that text and tried to
display the
formatting of newline is lost and get displayed with
<h:outText
escape="false" value ="#{text.get}"   
/>

and this text data was collected in database using lebel and
text contains
newline and carriage return 



Thanks 

Chetu     



NABA wrote:
> 
> Hi..
> Who is interested in this issue..
> The problem is, that the whole tree is processed... and
so the request 
> will fail because the inputText will be validated and 5
chars are
> required..
> I had to wrap the input I process with support - to
region!!
> The answer comes from jobss-ajax4jsf-forum...
> naba
> 
> 
> 
> NABA schrieb:
>> Hi All...
>> My environment:
>> MyFaces 1.1.5
>> Tomahawk 1.1.6
>> ajax4jsf 1.1.1
>> jboss Aplication Server 4.0.5
>> IDE: netbeans 5.x
>> I try to develop a small application to learn more
about jsf and
>> ajax4jsf.
>> I faced an unexplainable problem.
>> When I use AJAX4JSF and in the same JSP
<f:validateLength 
>> maximum="250" minimum="5"
/>, AJAX4JSF dosen't work.
>> It works when I use <f:validateLength
maximum="250" /> (without 
>> minimum attribute).
>> Heer my JSP snippet:
>> ....
>>     /<h:inputText
value="#{user.textxyt}" >
>>              <a4j:support
event="onkeyup" reRender="rep"/>
>>     </h:inputText>
>>     <h:outputText
value="#{user.textxyt}" id="rep"/>
>>
>>     <h:outputLabel id="labelBez"
for="Label" value="Label" />
>>     <t:inputText id="Bezeichnungs"
value="#{beanProc.name}"  
>> readonly="#{!beanProc.beditable}"
styleClass="textbox">
>>         <f:validateLength
maximum="250" />
>>     </t:inputText>/
>> ....
>> I can't understand what is the problem heer?
>> If anyone understand what the problem could be,
please for a statment!
>> thanks...
>> naba 
>>
>> PS: there is not any server-output like error or
warns!!
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/output-formatting----
--tf4507760.html#a12894344
Sent from the MyFaces - Users mailing list archive at
Nabble.com.


Re: output formatting ? ?
country flaguser name
United States
2007-09-28 09:33:20
hi NABA and All

The issue is that i want the text to be shown in the format
it was entered
i.e. with carriage return and newline. The text got saved to
database with
that formatting but when i fetch that text and tried to
display the
formatting of newline is lost and get displayed with
<h:outText
escape="false" value ="#{text.get}"   
/>

and this text data was collected in database using lebel and
text contains
newline and carriage return



Thanks

Chetu    


    NABA w

Chetan Bob wrote:
> 
>  Hi  
> 
> I m getting some text from and saving it to database
.....then while
> displaying it using h:outputText 
> the formatting  at the time of entering text is lost
and output is withut
> carriage return 
> 
> <h:outputformat  escap="false" value
="#{dbget.gettext}"  />
> 
> is also not working 
> 
> What can be solution please reply 
> 

-- 
View this message in context: http://www.nabble.com/output-formatting----
--tf4507760.html#a12941751
Sent from the MyFaces - Users mailing list archive at
Nabble.com.


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )