Bring your gang together. Do your thing. Find your favourite Yahoo! Group. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
> > Strange...
> I just tried to copy from the bookcast example the regexpr for the > url(link) but it´s not working... > > I have exactly the same link element in my app and I defined it in > my schema, too but it´s not working... > > in my schema... > <xs:simpleType name="link"> > <xs:restriction base="xs:string"> > <!-- Approximative regexp for HTTP URLs --> > <xs:pattern value="(https?\://([^/?#]+)/([^?#]*)(\?([^?#] > +))?(#(.*))?)?"/> > </xs:restriction> > </xs:simpleType> > > in my view.xml > > <xforms:input ref="link"> > <xforms:label>link</xforms:label> > </xforms:input> > > > I tried the example online on the orbeon site, it´s working. > Now I have the same code...it´s not working..=( -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Sathish K Mittapelli
hi sathish
> can anybody tell me how to use xxforms:if and xxforms:when and wat are > the requored jars to use these in my code.When i am trying to use these > i am getting error like invalid data type xxforms:if etc. "The <xxforms:if> and <xxforms:choose> extensions no longer work with XForms NG. Use <xforms:switch> or <xforms:group> with relevance instead." http://www.orbeon.com/ops/doc/reference-xforms-migration#d216e162 HTH florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by masjab-2
The schema type must be applied to your XForms instance. This will
happen if: 1) The type is applied when the XForms engine perform schema validation on your instance(s) 2) You explicitly assign the type, e.g.: <xforms:bind nodeset="link" type="link"/> If you still can't figure it out, try to send to the list a short example that runs in the sandbox. -Erik On Apr 30, 2008, at 3:53 AM, Masen J wrote: >> > Strange... >> I just tried to copy from the bookcast example the regexpr for the >> url(link) but it´s not working... >> >> I have exactly the same link element in my app and I defined it in >> my schema, too but it´s not working... >> >> in my schema... >> <xs:simpleType name="link"> >> <xs:restriction base="xs:string"> >> <!-- Approximative regexp for HTTP URLs --> >> <xs:pattern value="(https?\://([^/?#]+)/([^?#]*)(\?([^?#] >> +))?(#(.*))?)?"/> >> </xs:restriction> >> </xs:simpleType> >> >> in my view.xml >> >> <xforms:input ref="link"> >> <xforms:label>link</xforms:label> >> </xforms:input> >> >> >> I tried the example online on the orbeon site, it´s working. >> Now I have the same code...it´s not working..=( > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I did all that but no luck..
After reinstalling to the official release everything worked fine. Anyway, THX Am 30.04.2008 um 22:51 schrieb Erik Bruchez: > The schema type must be applied to your XForms instance. This will > happen if: > > 1) The type is applied when the XForms engine perform schema > validation on your instance(s) > > 2) You explicitly assign the type, e.g.: > > <xforms:bind nodeset="link" type="link"/> > > If you still can't figure it out, try to send to the list a short > example that runs in the sandbox. > > -Erik > > On Apr 30, 2008, at 3:53 AM, Masen J wrote: > >>> > Strange... >>> I just tried to copy from the bookcast example the regexpr for the >>> url(link) but it´s not working... >>> >>> I have exactly the same link element in my app and I defined it in >>> my schema, too but it´s not working... >>> >>> in my schema... >>> <xs:simpleType name="link"> >>> <xs:restriction base="xs:string"> >>> <!-- Approximative regexp for HTTP URLs --> >>> <xs:pattern value="(https?\://([^/?#]+)/([^?#]*)(\?([^?#] >>> +))?(#(.*))?)?"/> >>> </xs:restriction> >>> </xs:simpleType> >>> >>> in my view.xml >>> >>> <xforms:input ref="link"> >>> <xforms:label>link</xforms:label> >>> </xforms:input> >>> >>> >>> I tried the example online on the orbeon site, it´s working. >>> Now I have the same code...it´s not working..=( >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I want to use the java-authentication example for my app but I need some help, please. I followed the instructions how to use with tomcat, the example works fine. But how can I use it for my own app? I was wandering about the web.xml file... <security-constraint> <web-resource-collection> <web-resource-name>Authentication example</web-resource-name> <url-pattern>/java-authentication/</url-pattern> </web-resource-collection> <auth-constraint> <role-name>orbeon-admin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/java-authentication/login</form-login-page> <form-error-page>/java-authentication/login-error</form-error-page> </form-login-config> </login-config> <security-role> <role-name>orbeon-admin</role-name> </security-role> If my app is /myApp and there I have a folder named "auth"..then I have to change <url-pattern>/java-authentication/</url-pattern> to <url-pattern>/myApp/</url-pattern> right? But how can I use different/more than one <security-constraint>`s ??? I want my app to have two usergroups. Can someone please give me an example how I do this? /myApp ---------/homepage ----------------/welcome ----------------/search ----------------/edit I want the user to login to get access to the welcome page and search... But for /edit he must authenticate again. THX -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
On Mon, May 5, 2008 at 3:52 PM, Masen J <[hidden email]> wrote:
> <security-constraint> > If my app is /myApp and there I have a folder named "auth"..then I have to > change > <url-pattern>/java-authentication/</url-pattern> > > to > > <url-pattern>/myApp/</url-pattern> right? No: the <url-pattern> tells you what path you want to protect. If users try to access a URL that matches that pattern, the servlet container will make sure they have logged in and have the appropriate role. > But how can I use different/more than one <security-constraint>`s ??? So you might want to say that <url-pattern>/admin</url-pattern> requires a "special" admin role, while some other path <url-pattern>/view</url-pattern> only requires a "user" role. This way you can have two types of users. But both will use the same login page which you configure with <login-config>. This means you'll always have just one <login-config>, but you can have multiple <security-constraint>. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Alex,
but please, don´t go...=) What do I have to do if I want the user to see ONLY the loginpage, when he enters: I copied the login.xhtml from the example an it´s in /myApp But when http://localhost:8080/orbeon/myApp/ is entered the sidebar(I started from the bookcast example and changed it to my-theme.xsl...) is still visible... The loginpage is there and after login I get an errormessage...Sometime "HTTP Status 400 - Invalid direct reference to form login page" and sometime: "can´t find the page..." I am lost a little bit! Am 06.05.2008 um 02:07 schrieb Alessandro Vernet: On Mon, May 5, 2008 at 3:52 PM, Masen J <[hidden email]> wrote:<security-constraint>If my app is /myApp and there I have a folder named "auth"..then I have tochange<url-pattern>/java-authentication/</url-pattern>to<url-pattern>/myApp/</url-pattern> right? -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
On Mon, May 5, 2008 at 5:54 PM, Masen J <[hidden email]> wrote:
> What do I have to do if I want the user to see ONLY the loginpage, when he > enters: > > http://localhost:8080/orbeon/myApp/ > > I copied the login.xhtml from the example an it´s in /myApp > > But when http://localhost:8080/orbeon/myApp/ is entered the sidebar(I > started from the bookcast example and changed it to my-theme.xsl...) is > still visible... redirected to your login page. You might want to try to change the <url-pattern> to /*, just to make sure that the redirection to the login page works. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
ok, I tried and now it´s almost working like i want..
but still some help would be great. I have: <security-constraint> <web-resource-collection> <web-resource-name>myApp</web-resource-name> <url-pattern>/myApp/edit/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>orbeon-admin</role-name> </auth-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>myApp</web-resource-name> <url-pattern>/myApp/search/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>orbeon-user</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/myApp/login</form-login-page> <form-error-page>/myApp/login-error</form-error-page> </form-login-config> </login-config> <security-role> <role-name>orbeon-admin</role-name> </security-role> I do not understand how to make it like: <web-resource-name>myApp</web-resource-name> <url-pattern>/myApp/edit/*</url-pattern> <url-pattern>/myApp/search/*</url-pattern> .... because I do not know how to put two different groups.... Please, I read the reference on orbeon, I looked at the example but can someone explain to me again "Access control is provided by adding three sections to the web.xml file:" Now my app works fine with one error: when i put in a wrong user/pass I only get a error message from orbeon system... How can I redirect the user try again? THX Am 06.05.2008 um 03:03 schrieb Alessandro Vernet: On Mon, May 5, 2008 at 5:54 PM, Masen J <[hidden email]> wrote:What do I have to do if I want the user to see ONLY the loginpage, when heenters:http://localhost:8080/orbeon/myApp/I copied the login.xhtml from the example an it´s in /myAppBut when http://localhost:8080/orbeon/myApp/ is entered the sidebar(Istarted from the bookcast example and changed it to my-theme.xsl...) isstill visible... -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
On Wed, May 7, 2008 at 2:25 PM, Masen J <[hidden email]> wrote:
> Now my app works fine with one error: > when i put in a wrong user/pass I only get a error message from orbeon > system... > How can I redirect the user try again? When users enter an incorrect password, they should be taken to /myApp/login-error. That does not happen? Where are they taken? What is the error you are getting exactly? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I made two screenshots...
Am 08.05.2008 um 02:20 schrieb Alessandro Vernet: > On Wed, May 7, 2008 at 2:25 PM, Masen J <[hidden email]> wrote: >> Now my app works fine with one error: >> when i put in a wrong user/pass I only get a error message from >> orbeon >> system... >> How can I redirect the user try again? > > When users enter an incorrect password, they should be taken to > /myApp/login-error. That does not happen? Where are they taken? What > is the error you are getting exactly? > > Alex > -- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > Orbeon's Blog: http://www.orbeon.com/blog/ > Personal Blog: http://avernet.blogspot.com/ > Twitter - http://twitter.com/avernet > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Do you have a page flow entry for the login page?
-Erik On May 7, 2008, at 5:26 PM, Masen J wrote: > I made two screenshots... > > <Bild 2.png><Bild 3.png> > Am 08.05.2008 um 02:20 schrieb Alessandro Vernet: > >> On Wed, May 7, 2008 at 2:25 PM, Masen J <[hidden email]> wrote: >>> Now my app works fine with one error: >>> when i put in a wrong user/pass I only get a error message from >>> orbeon >>> system... >>> How can I redirect the user try again? >> >> When users enter an incorrect password, they should be taken to >> /myApp/login-error. That does not happen? Where are they taken? What >> is the error you are getting exactly? >> >> Alex >> -- >> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise >> Orbeon's Blog: http://www.orbeon.com/blog/ >> Personal Blog: http://avernet.blogspot.com/ >> Twitter - http://twitter.com/avernet >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
yes,
what I did was the following: I copied the files from the java-authentication example app...(without page-flow and view...) into my folder /myApp (in my screenshots called "2604"). My page-flow looks like this: <page path-info="/2604/" model="model.xpl" view="homepage/home/home.xhtml"/> <page path-info="/2604/login" view="login.xhtml"/> <page path-info="/2604/home/" view="homepage/home/home.xhtml"/> <page path-info="/2604/edit/" view="homepage/edit/edit.xhtml"/> <page path-info="/2604/search/" view="homepage/search/search.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> Still I do not know how to do the following; Group A should get access to all pages but the edit page (this is where the admin group makes new dictionary entries into a eXist db). Group B should get the same acces to all pages but when trying to get to the "edit" page, the should login again, with the admin/pass... Or can I do all this in the first login. I still don´t know because I haven´t understand the security-constraints in the web.xml file... THX for your help Am 08.05.2008 um 03:17 schrieb Erik Bruchez: Do you have a page flow entry for the login page? -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
ok, I did forget to put the logout into page-flow but still no page like:"login-error"=(
<page id="home" path-info="/2604/" model="model.xpl" view="view.xhtml"/> <page path-info="/2604/login" view="login.xhtml"/> <page path-info="/2604/logout"> <action action="logout.xpl"> <result page="home"/> </action> </page> <page path-info="/2604/home/" view="homepage/home/home.xhtml"/> <page path-info="/2604/edit/" view="homepage/edit/edit.xhtml"/> <page path-info="/2604/search/" view="homepage/search/search.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> Am 08.05.2008 um 10:33 schrieb Masen J:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
oh man, I should catch some sleep...
Problem with error-page solved! Forget to put the login-error into page-flow... Now it´s working but still I don´t know how to handle my two usergroups. <page id="home" path-info="/2604/" model="model.xpl" view="view.xhtml"/> <page path-info="/2604/login" view="login.xhtml"/> <page path-info="/2604/login-error" view="login-error.xhtml"/> <page path-info="/2604/logout"> <action action="logout.xpl"> <result page="home"/> </action> </page> <page path-info="/2604/home/" view="homepage/home/home.xhtml"/> <page path-info="/2604/edit/" view="homepage/edit/edit.xhtml"/> <page path-info="/2604/search/" view="homepage/search/search.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> Am 08.05.2008 um 10:56 schrieb Masen J:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |