hi stephen, werner made the latest changes in the playground project -> he can provide all the details. i created [1] -> the documentation about the alternative implementations should be better soon.
regards, gerhard [1] https://issues.apache.org/jira/browse/EXTCDI-274 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 simply added [3] and now I get the behavior I was looking for. > > Is there a reason why I should add [2] ? > > > On Fri, Mar 9, 2012 at 10:38 AM, Gerhard Petracek > <gerhard.petra...@gmail.com> wrote: > > hi stephen, > > > > that's right [1] doesn't support it. > > werner committed his improvement and you can try [2] and [3] as you see > > them right now. > > > > regards, > > gerhard > > > > [1] > http://old.nabble.com/-CODI--lazy-windowId-drop-script-p31654496.html > > [2] http://s.apache.org/rr > > [3] http://s.apache.org/23p > > > > 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 was referring to [1] > >> http://old.nabble.com/-CODI--lazy-windowId-drop-script-p31654496.html > >> > >> I guess I just need to wait until the correct way is tested and > >> documented in the wiki using: > >> [1] http://s.apache.org/rr > >> [2] http://s.apache.org/23p > >> > >> > >> > >> On Fri, Mar 9, 2012 at 9:20 AM, Gerhard Petracek > >> <gerhard.petra...@gmail.com> wrote: > >> > @ mark: > >> > i just tested it and it works with [1] in combination > >> > with ClientSideWindowHandler [2]. > >> > > >> > regards, > >> > gerhard > >> > > >> > [1] http://s.apache.org/rr > >> > [2] http://s.apache.org/23p > >> > > >> > 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 Mark Struberg <strub...@yahoo.de> > >> > > >> >> Hi Stephen! > >> >> > >> >> Well, the current approach in CODI is currently under discussion in > the > >> >> JSF EG. The whole windowId stuff of CODI might end up in the JSF-2.2 > or > >> 2.3 > >> >> spec. > >> >> > >> >> >T hat 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. > >> >> > >> >> Nope, because the windowhandler.js script will first check the > >> window.name. > >> >> And if this is empty/doesn't fit the windowId in the URL, then it > will > >> >> reload the page with a freshly requested windowId. > >> >> > >> >> LieGrue, > >> >> strub > >> >> > >> >> > >> >> > >> >> > >> >> ----- Original Message ----- > >> >> > From: Stephen More <stephen.m...@gmail.com> > >> >> > To: MyFaces Discussion <users@myfaces.apache.org> > >> >> > Cc: > >> >> > Sent: Friday, March 9, 2012 1:27 PM > >> >> > Subject: Re: MyFaces and CODI > >> >> > > >> >> > 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* > >> >> >>> >> >> > >> >> > ------------------------------------------------------------------- > >> >> >>> >> >> > >> >> >>> >> > >> >> >>> > >> >> > > >> >> > >> >