That seems to work fine when pasting into a new empty window, but it
still allows you to copy-paste the url from one codi window to an
existing codi window.


On Fri, Mar 9, 2012 at 8:18 AM, Gerhard Petracek
<gerhard.petra...@gmail.com> wrote:
> hi stephen,
>
> i think it's easier to use [1] (for now).
> i'll provide all the details in the wiki as soon as we made the final test.
>
> regards,
> gerhard
>
> [1] http://old.nabble.com/-CODI--lazy-windowId-drop-script-p31654496.html
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/3/9 Gerhard Petracek <gerhard.petra...@gmail.com>
>
>> hi stephen,
>>
>> just handle it like any custom js with jsf2 (you can see the usage in the
>> example - see layout.xhtml).
>>
>> btw. i saw that the previous version in the playground example has an
>> issue.
>> werner is currently refactoring the script -> [1] is his current result.
>>
>> regards,
>> gerhard
>>
>> [1] http://s.apache.org/rr
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>> 2012/3/9 Stephen More <stephen.m...@gmail.com>
>>
>>> Included in the JSF jar is META-INF/resources/javax.faces/jsf.js which
>>> enables its use by <h:outputScript name="jsf.js" library="javax.faces"
>>> target="head"/>
>>>
>>> Should windowhandler.js be moved from the examples into a core library
>>> so that it can be utilized the same way ?
>>>
>>>
>>>
>>> On Fri, Mar 9, 2012 at 7:10 AM, Gerhard Petracek
>>> <gerhard.petra...@gmail.com> wrote:
>>> > hi stephen,
>>> >
>>> > yes - you can add a small js (see e.g. [1]) to support this use-case.
>>> >
>>> > regards,
>>> > gerhard
>>> >
>>> > [1] http://s.apache.org/YTq
>>> >
>>> > http://www.irian.at
>>> >
>>> > Your JSF/JavaEE powerhouse -
>>> > JavaEE Consulting, Development and
>>> > Courses in English and German
>>> >
>>> > Professional Support for Apache MyFaces
>>> >
>>> >
>>> >
>>> > 2012/3/9 Stephen More <stephen.m...@gmail.com>
>>> >
>>> >> Great. I am mainly interested in WindowScoped i.e. every browser tab
>>> >> has its own mini-session.
>>> >>
>>> >> I see that CODI is adding a ?windowId=595 to keep these conversations
>>> >> separate. If a user simply copies the url and pastes in a new tab now
>>> >> two browser tabs are sharing the same conversation. How can I prevent
>>> >> this ? I want to enforce that EVERY browser tab has its own
>>> >> conversation. Perhaps a simple error to the user saying "Sorry" or
>>> >> start a new conversation.
>>> >>
>>> >> -Thanks
>>> >>
>>> >> On Fri, Mar 9, 2012 at 3:18 AM, Gerhard Petracek
>>> >> <gerhard.petra...@gmail.com> wrote:
>>> >> > hi stephen,
>>> >> >
>>> >> > (that's an issue with the setup of weld and not related to myfaces
>>> codi.)
>>> >> > however, myfaces codi doesn't need this support -> if you also don't
>>> need
>>> >> > cdi support for servlets, filters or listeners, you can run the
>>> >> application
>>> >> > without those features.
>>> >> >
>>> >> > regards,
>>> >> > gerhard
>>> >> >
>>> >> > http://www.irian.at
>>> >> >
>>> >> > Your JSF/JavaEE powerhouse -
>>> >> > JavaEE Consulting, Development and
>>> >> > Courses in English and German
>>> >> >
>>> >> > Professional Support for Apache MyFaces
>>> >> >
>>> >> >
>>> >> > 2012/3/9 Stephen More <stephen.m...@gmail.com>
>>> >> >
>>> >> >> I too am trying to get a simple example working. I have put together
>>> >> >> this project:
>>> http://maven-examples.googlecode.com/svn/trunk/jsf-codi/
>>> >> >>
>>> >> >> mvn jetty:run-war   results in
>>> >> >>
>>> >> >> SEVERE: Unable to create JettyWeldInjector. CDI injection will not
>>> be
>>> >> >> available in Servlets, Filters or Listeners
>>> >> >>
>>> >> >> What else do I need to get this simple example working ?
>>> >> >>
>>> >> >> -Thanks
>>> >> >>
>>> >> >> On Thu, Mar 8, 2012 at 11:07 AM, Gerhard Petracek
>>> >> >> <gerhard.petra...@gmail.com> wrote:
>>> >> >> > hi jose,
>>> >> >> >
>>> >> >> > first of all: welcome @ myfaces!
>>> >> >> >
>>> >> >> > concrete questions are very welcome and we will improve the wiki
>>> >> based on
>>> >> >> > them.
>>> >> >> >
>>> >> >> > regards,
>>> >> >> > gerhard
>>> >> >> >
>>> >> >> > http://www.irian.at
>>> >> >> >
>>> >> >> > Your JSF/JavaEE powerhouse -
>>> >> >> > JavaEE Consulting, Development and
>>> >> >> > Courses in English and German
>>> >> >> >
>>> >> >> > Professional Support for Apache MyFaces
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > 2012/3/8 José Luis Cetina <maxtorz...@gmail.com>
>>> >> >> >
>>> >> >> >> Hi im so excited to start and use MyFaces and CODI but i cant
>>> get any
>>> >> >> >> "good" documentation in fact i only can get like 2 or 3 mini
>>> tutorial
>>> >> >> but
>>> >> >> >> they are really incomplete, can somebody recommend me to some
>>> >> tutorial
>>> >> >> or
>>> >> >> >> book to start with *CODI *y see this is an excellent extension,
>>> im
>>> >> >> moving
>>> >> >> >> from mojarra and CDI to MyFaces and MyFaces extensions, please
>>> where
>>> >> i
>>> >> >> can
>>> >> >> >> find value information
>>> >> >> >>
>>> >> >> >> The only URL where i found a little info is this:
>>> >> >> >> https://cwiki.apache.org/confluence/display/EXTCDI/Index
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >>
>>> -------------------------------------------------------------------
>>> >> >> >> *SCJA. José Luis Cetina*
>>> >> >> >>
>>> -------------------------------------------------------------------
>>> >> >> >>
>>> >> >>
>>> >>
>>>
>>
>>

Reply via email to