Using links inside outputText tag

View: New views
11 Messages — Rating Filter:   Alert me  

Using links inside outputText tag

by Ferdinand Urban :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have really simple question. My issue is that I need to put some HTML tags (ie. <h1>, <strong>, <a>, etc.) into string which is value of outputText tag. Is there any way to done it, or should I use another component?

Thanks for your help.
Ferdinand


Re: Using links inside outputText tag

by simon.kitching@chello.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ferdinand Urban schrieb:
> Hi all,
> I have really simple question. My issue is that I need to put some
> HTML tags (ie. <h1>, <strong>, <a>, etc.) into string which is value
> of outputText tag. Is there any way to done it, or should I use
> another component?
Are you asking because your html is being transformed into "<" etc?
If so, just use the "escape" attribute, ie
  <h:outputText escape="false" value="#{...}"/>

Regards,
Simon


RE: Using links inside outputText tag

by Malik, Usman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is a simple way to do it ...
<t:htmlTag value="H1">
    <t:outputText value="Hello World" />
</t:htmlTag>
 
 
If you wanted to use a line break (BR tag), you would leave its body emtpy, like this ....
<t:htmlTag value="BR"></t:htmlTag>
 
 
- Usman


From: rough.tiger@... [mailto:rough.tiger@...] On Behalf Of Ferdinand Urban
Sent: Monday, May 05, 2008 10:15 AM
To: users@...
Subject: Using links inside outputText tag

Hi all,
I have really simple question. My issue is that I need to put some HTML tags (ie. <h1>, <strong>, <a>, etc.) into string which is value of outputText tag. Is there any way to done it, or should I use another component?

Thanks for your help.
Ferdinand



NOTE: The information in this email may be confidential and legally privileged. If you are not the intended recipient, you must not read, use or disseminate the information; please advise the sender immediately by reply email and delete this message and any attachments without retaining a copy. Although this email and any attachments are believed to be free of any virus or other defect that may affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by RGIS, LLC for any loss or damage arising in any way from its use.

Re: Using links inside outputText tag

by Ferdinand Urban :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, May 5, 2008 at 4:25 PM, simon.kitching@... <simon.kitching@...> wrote:
Ferdinand Urban schrieb:
> Hi all,
> I have really simple question. My issue is that I need to put some
> HTML tags (ie. <h1>, <strong>, <a>, etc.) into string which is value
> of outputText tag. Is there any way to done it, or should I use
> another component?
Are you asking because your html is being transformed into "&lt;" etc?
If so, just use the "escape" attribute, ie
 <h:outputText escape="false" value="#{...}"/>

Regards,
Simon


Simon, that's what exactly I was asking thaks so much

Regards,
Ferdinand

scrollableDataTable in tomahawk

by Matta, Keerthi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Do we have a component in Tomahawk which would serve the purpose of scrollableDataTable.

Thanks and Regards,
Keerthi Matta,
781-302-5625


Re: scrollableDataTable in tomahawk

by arne anka-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

does dataTable match your definition of scrollable?
see
http://www.irian.at/myfacesexamples/dataScroller.jsf

regards

RE: scrollableDataTable in tomahawk

by Matta, Keerthi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No this does not solve my problem. The scrolling function here is
achieved through Pagination.
I am looking something similar to the below where the header is static:

http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.
jsf?c=scrollableDataTable


Thanks and Regards,
Keerthi Matta,
781-302-5625
-----Original Message-----
From: arne anka [mailto:dojo@...]
Sent: Tuesday, May 06, 2008 4:36 AM
To: MyFaces Discussion
Subject: Re: scrollableDataTable in tomahawk

does dataTable match your definition of scrollable?
see
http://www.irian.at/myfacesexamples/dataScroller.jsf

regards



Custom error messages for Tomahawk inputCalendar

by Malik, Usman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Custom error messages for Tomahawk inputCalendar

I am using Tomahawk 1.1.6 with JDeveloper 11g-3 and running into a slight problem customizing the inputCalendar control's conversion/error messages. I have successfully followed the i18n type approach (example @ http://www.jsf-faq.com/faqs/faces-messages.html, #126) to get custom error messages for simple controls like input boxes. However, I tried to use the same approach with the inputCalendar but it continues to give me a default conversion/error message instead of my own.

Here are the steps I have taken so far …

1. Created & registered a custom class that implements the Converter class with its getAsObject and getAsString methods.

2. Added a converter attribute for the calendar control in my JSP page, pointing to the above custom class.
3. Created & registered a message bundle file (per i18n approach) and added custom conversion/error messages for the calendar.

The first 2 steps are included because I also wanted to limit what formats the user can enter in the date field. From what I understand, these 2 steps will determine if the conversion succeeds or fails, but to actually change the error message that is displayed, I have to correctly implement the 3rd step. Since I can see the first 2 steps executing properly during debugging, my guess is that the problem is in the 3rd step … more specifically I think maybe I am not putting the correct key/value pair in message bundle file? I have listed the contents of my message bundle file below … I know that most of these entries are probably not correct but I was just shooting in the dark and trying out all variations that I thought might work!

#--- message bundle file: start ---

javax.faces.convert.ConverterException.CONVERSION=Java Conversion message1
javax.faces.convert.ConverterException.CONVERSION_detail=Java Conversion message1

javax.faces.convert.DateTimeConverter.CONVERSION=Java Conversion message2
javax.faces.convert.DateTimeConverter.CONVERSION_detail=Java Conversion message2

org.apache.myfaces.calendar.CONVERSION=Apache Conversion message1
org.apache.myfaces.calendar.CONVERSION_detail=Apache Conversion message1

org.apache.myfaces.custom.calendar.CONVERSION=Apache Conversion message2
org.apache.myfaces.custom.calendar.CONVERSION_detail=Apache Conversion message2

org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION=Apache Conversion message3
org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION_detail=Apache Conversion message3

#--- message bundle file: stop ---

A similar question was posted in this list in June 2007 but its answer did not resolve my issue. If somebody knows the correct key/value pair to use in my situation, or thinks that something else is the issue, please let me know. Thanks!

Regards,
Usman



NOTE: The information in this email may be confidential and legally privileged. If you are not the intended recipient, you must not read, use or disseminate the information; please advise the sender immediately by reply email and delete this message and any attachments without retaining a copy. Although this email and any attachments are believed to be free of any virus or other defect that may affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by RGIS, LLC for any loss or damage arising in any way from its use.

Re: scrollableDataTable in tomahawk

by Hazem Saleh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Keerthi,

I don't know whether there is a mechanism in Tomahawk that directly offers this kind of scrolling.
Anyway, If you want to make your dataTable scrollable using vertical scrollers but the table header will be scrollable also.

You can use the following code :
<div style="overflow:auto; width:100%; height:200px">
    <t:dataTable...>
        <h:column>
        ...
        </h:column>
    ...
    </t:dataTable>
</div>

On Tue, May 6, 2008 at 5:15 PM, Matta, Keerthi <Keerthi.Matta@...> wrote:
No this does not solve my problem. The scrolling function here is
achieved through Pagination.
I am looking something similar to the below where the header is static:

http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.
jsf?c=scrollableDataTable



Thanks and Regards,
Keerthi Matta,
781-302-5625
-----Original Message-----
From: arne anka [mailto:dojo@...]
Sent: Tuesday, May 06, 2008 4:36 AM
To: MyFaces Discussion
Subject: Re: scrollableDataTable in tomahawk

does dataTable match your definition of scrollable?
see
http://www.irian.at/myfacesexamples/dataScroller.jsf

regards





--
Hazem Ahmed Saleh Ahmed
http://www.jroller.com/page/HazemBlog

RE: Custom error messages for Tomahawk inputCalendar

by Malik, Usman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Custom error messages for Tomahawk inputCalendar
Does anybody have any ideas on what might be going in my situation?


From: Malik, Usman [mailto:UMalik@...]
Sent: Tuesday, May 06, 2008 2:22 PM
To: MyFaces Discussion
Subject: Custom error messages for Tomahawk inputCalendar

I am using Tomahawk 1.1.6 with JDeveloper 11g-3 and running into a slight problem customizing the inputCalendar control's conversion/error messages. I have successfully followed the i18n type approach (example @ http://www.jsf-faq.com/faqs/faces-messages.html, #126) to get custom error messages for simple controls like input boxes. However, I tried to use the same approach with the inputCalendar but it continues to give me a default conversion/error message instead of my own.

Here are the steps I have taken so far …

1. Created & registered a custom class that implements the Converter class with its getAsObject and getAsString methods.

2. Added a converter attribute for the calendar control in my JSP page, pointing to the above custom class.
3. Created & registered a message bundle file (per i18n approach) and added custom conversion/error messages for the calendar.

The first 2 steps are included because I also wanted to limit what formats the user can enter in the date field. From what I understand, these 2 steps will determine if the conversion succeeds or fails, but to actually change the error message that is displayed, I have to correctly implement the 3rd step. Since I can see the first 2 steps executing properly during debugging, my guess is that the problem is in the 3rd step … more specifically I think maybe I am not putting the correct key/value pair in message bundle file? I have listed the contents of my message bundle file below … I know that most of these entries are probably not correct but I was just shooting in the dark and trying out all variations that I thought might work!

#--- message bundle file: start ---

javax.faces.convert.ConverterException.CONVERSION=Java Conversion message1
javax.faces.convert.ConverterException.CONVERSION_detail=Java Conversion message1

javax.faces.convert.DateTimeConverter.CONVERSION=Java Conversion message2
javax.faces.convert.DateTimeConverter.CONVERSION_detail=Java Conversion message2

org.apache.myfaces.calendar.CONVERSION=Apache Conversion message1
org.apache.myfaces.calendar.CONVERSION_detail=Apache Conversion message1

org.apache.myfaces.custom.calendar.CONVERSION=Apache Conversion message2
org.apache.myfaces.custom.calendar.CONVERSION_detail=Apache Conversion message2

org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION=Apache Conversion message3
org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION_detail=Apache Conversion message3

#--- message bundle file: stop ---

A similar question was posted in this list in June 2007 but its answer did not resolve my issue. If somebody knows the correct key/value pair to use in my situation, or thinks that something else is the issue, please let me know. Thanks!

Regards,
Usman   



NOTE: The information in this email may be confidential and legally privileged. If you are not the intended recipient, you must not read, use or disseminate the information; please advise the sender immediately by reply email and delete this message and any attachments without retaining a copy. Although this email and any attachments are believed to be free of any virus or other defect that may affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by RGIS, LLC for any loss or damage arising in any way from its use.

Re: Custom error messages for Tomahawk inputCalendar

by HelgeT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

It works for me if i add the following two lines to my custom message bundle:
#Note! this message overrides the default message in: myfaces-impl-1.2.0.jar!\javax\faces\Messages.properties. This only works if the line "org.apache.myfaces.Date.INVALID=Validation Error" is also present in the bundle  
org.apache.myfaces.Date.INVALID=Validation Error  
org.apache.myfaces.Date.INVALID_detail=The given value ({0}) is not a correct date. Remember specifying the time. E.g.: 13:00

So the conclusion must be that the component looks for the key "org.apache.myfaces.Date.INVALID" in the message bundle before switching to the default message bundle

Regards
Helge


Malik, Usman wrote:
I am using Tomahawk 1.1.6 with JDeveloper 11g-3 and running into a
slight problem customizing the inputCalendar control's conversion/error
messages. I have successfully followed the i18n type approach (example @
http://www.jsf-faq.com/faqs/faces-messages.html, #126) to get custom
error messages for simple controls like input boxes. However, I tried to
use the same approach with the inputCalendar but it continues to give me
a default conversion/error message instead of my own.

Here are the steps I have taken so far ...

1. Created & registered a custom class that implements the Converter
class with its getAsObject and getAsString methods.
2. Added a converter attribute for the calendar control in my JSP page,
pointing to the above custom class.
3. Created & registered a message bundle file (per i18n approach) and
added custom conversion/error messages for the calendar.

The first 2 steps are included because I also wanted to limit what
formats the user can enter in the date field. From what I understand,
these 2 steps will determine if the conversion succeeds or fails, but to
actually change the error message that is displayed, I have to correctly
implement the 3rd step. Since I can see the first 2 steps executing
properly during debugging, my guess is that the problem is in the 3rd
step ... more specifically I think maybe I am not putting the correct
key/value pair in message bundle file? I have listed the contents of my
message bundle file below ... I know that most of these entries are
probably not correct but I was just shooting in the dark and trying out
all variations that I thought might work!

#--- message bundle file: start ---

javax.faces.convert.ConverterException.CONVERSION=Java Conversion
message1
javax.faces.convert.ConverterException.CONVERSION_detail=Java Conversion
message1

javax.faces.convert.DateTimeConverter.CONVERSION=Java Conversion
message2
javax.faces.convert.DateTimeConverter.CONVERSION_detail=Java Conversion
message2

org.apache.myfaces.calendar.CONVERSION=Apache Conversion message1
org.apache.myfaces.calendar.CONVERSION_detail=Apache Conversion message1

org.apache.myfaces.custom.calendar.CONVERSION=Apache Conversion message2
org.apache.myfaces.custom.calendar.CONVERSION_detail=Apache Conversion
message2

org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION=Apache
Conversion message3
org.apache.myfaces.custom.calendar.HtmlInputCalendar.CONVERSION_detail=A
pache Conversion message3

#--- message bundle file: stop ---

A similar question was posted in this list in June 2007 but its answer
did not resolve my issue. If somebody knows the correct key/value pair
to use in my situation, or thinks that something else is the issue,
please let me know. Thanks!

Regards,
Usman



NOTE: The information in this email may be confidential and legally
privileged. If you are not the intended recipient, you must not
read, use or disseminate the information; please advise the sender
immediately by reply email and delete this message and any
attachments without retaining a copy. Although this email and any
attachments are believed to be free of any virus or other defect
that may affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by RGIS, LLC for
any loss or damage arising in any way from its use.
LightInTheBox - Buy quality products at wholesale price