Hi Stéphanie,
2011/10/13 Stéphanie <stephanie.roulland(a)gmail.com>om>:
  Hi everyone,
 I have a little problem (not really a problem, but it's been two weeks since
 I can't find how to do).
 I have a basic button :
   <form id="survey"
action="${xwiki.getURL('MySpace.AppCreation')}"
 method="get">
     <div>
       <input type="hidden" name="appSpace"
value="MySpace"/>
       <input type="hidden" name="appTemplate"
 value="MySpace.ApplicationClassTemplate"/>
       <input type="hidden" name="appId" id="appId"
value="SURVEY" />
       <input type="hidden" name="appId2" id="appId2"
 value="$datetool.get('yyyyMMdd-HHmmss')" />
       <input type="submit" class="button"
 value="${msg.get('AppCreation.form.submit')}"/>
     </div>
   </form>
 The page just show a button "Start the survey"
 Pressing the button creates a new page with this intermediate code :
   #set($appId = $request.get('appId'))
   #set($appId2 = $request.get('appId2'))
   #set($appName = "$appId$appId2")
 I store the space and other information too. And after I redirect to my new
 page :
 $response.sendRedirect($xwiki.getURL($targetDocName, 'inline',
 "template=${appTemplate}&parent=${targetDocParent}"))
 After that my survey appears (it's just a basic form), and the name of my
 page is for example : SURVEY20111013-165324
 My problem is that the title of my page is also the name of my page. And I
 think it's not very beautiful for people who will answer my survey to see
 "SURVEY20111013-165324". I prefer them to see a title like "Survey".
 Is there a solution to change the title of my page and where do I exactly
 need to change this title ? 
You have to pass the title in the query string like this:
$response.sendRedirect($xwiki.getURL($targetDocName, 'inline',
"template=${appTemplate}&parent=${targetDocParent}&title=Survey"))
Note that in XWiki Enterprise 3.1 the title is not properly displayed
in inline form edit mode when passed in the query string (see
http://jira.xwiki.org/browse/XWIKI-6992 ) but it is saved.
Hope this helps,
Marius
 Thank for your response,
 Stéphanie
 --
 View this message in context:
http://xwiki.475771.n2.nabble.com/Don-t-see-how-to-change-the-title-of-my-p…
 Sent from the XWiki- Users mailing list archive at 
Nabble.com.
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users