Wow, this is cool! Thanks!


Mike Kienenberger wrote:
> 
> If it were me, I'd be looking at this first:
> 
> http://www.jquery4jsf.org/
> http://code.google.com/p/jquery4jsf/
> 
> Then I'd consider creating non-rendering alternatives to the standard
> input components.
> 
> On Tue, Sep 15, 2009 at 10:53 AM, Dvora <[email protected]> wrote:
>>
>> Unless I'm missing something - the link you attached talking about client
>> side work, while my wish is to access the components rendered by jquery
>> in
>> the server side backing beans...
>>
>> I'll try to implement the custom component as suggested above.
>>
>> Thanks again for the help, these are my first steps in jsf and I'm
>> learning
>> :-)
>>
>>
>> Mike Kienenberger wrote:
>>>
>>> If you're working with a specific library, you can do a search on the
>>> library and jsf -- it may be that someone else has already written an
>>> integration library for it.
>>>
>>> For example, a search on "jquery" and "jsf" turned up this -- not an
>>> integration library but has an example of how to integrate individual
>>> items.
>>>
>>> http://www.rupeal.com/2007/03/09/jquery-and-java-server-faces/
>>>
>>>
>>> On Tue, Sep 15, 2009 at 10:24 AM, Dvora <[email protected]> wrote:
>>>>
>>>> I read the article, and I'm facing some difficulties. The article is
>>>> very
>>>> dojo oriented, and the library I'm trying to work with is jquery
>>>> (datepicker). I guess the second approach mentioned there is similar to
>>>> the
>>>> solution proposed above. Am I right? Can you please explain how does
>>>> this
>>>> custom tag read the value of inner input text 'bbb' (datepicker set a
>>>> date
>>>> into it)?
>>>>
>>>> Thanks again for helping.
>>>>
>>>>
>>>> Richard Yee wrote:
>>>>>
>>>>> There are a couple ways to integrate js libraries and jsf. One way is
>>>>> to write custom input tags. Do a search on ' dojo jsf integration' and
>>>>> you should find a very good article on it on the IBM developer site.
>>>>>
>>>>> R
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>> On Sep 15, 2009, at 5:59 AM, Dvora <[email protected]> wrote:
>>>>>
>>>>>>
>>>>>> Of course, this is understood. I'm asking because I would like to
>>>>>> integrate
>>>>>> external js library which render html elements in the page, and I
>>>>>> would like
>>>>>> to access these elements in the server side...
>>>>>>
>>>>>>
>>>>>> Bart Kummel-2 wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> What you are asking is not possible. It is against the nature of
>>>>>>> JSF to do
>>>>>>> so. In your example, you should use a <h:inputText> to render the
>>>>>>> HTML
>>>>>>> <input>.
>>>>>>>
>>>>>>> Good luck!
>>>>>>> Best regards,
>>>>>>> Bart Kummel
>>>>>>>
>>>>>>> On Tue, Sep 15, 2009 at 14:41, Dvora <[email protected]> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hello all,
>>>>>>>>
>>>>>>>> I was wondering - is it possible for the server side to access html
>>>>>>>> elements
>>>>>>>> (or the dom tree) that not rendered by myfaces tags?
>>>>>>>>
>>>>>>>> For example the following jsp:
>>>>>>>>
>>>>>>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>>>>>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>>>>>>> <%...@taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
>>>>>>>>
>>>>>>>>
>>>>>>>> <f:view>
>>>>>>>>
>>>>>>>> .
>>>>>>>> .
>>>>>>>> .
>>>>>>>> <body>
>>>>>>>>
>>>>>>>>  <h:form id="myForm">
>>>>>>>>      <input id="bbb" name="bbb" type="text" value=""/>
>>>>>>>>  </h:form>
>>>>>>>>
>>>>>>>> </body>
>>>>>>>>
>>>>>>>> </f:view>
>>>>>>>>
>>>>>>>>
>>>>>>>> Can the backing bean access the 'bbb' input text element and its
>>>>>>>> value? I
>>>>>>>> tried to debug and inspect the FacesContext instance, but found
>>>>>>>> only
>>>>>>>> Myfaces
>>>>>>>> elements.
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://www.nabble.com/MyFaces---can-backing-beans-access-native-html-elements--tp25453164p25453164.html
>>>>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/MyFaces---can-backing-beans-access-native-html-elements--tp25453164p25453541.html
>>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/MyFaces---can-backing-beans-access-native-html-elements--tp25453164p25455015.html
>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/MyFaces---can-backing-beans-access-native-html-elements--tp25453164p25455497.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MyFaces---can-backing-beans-access-native-html-elements--tp25453164p25460764.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to