نمایش صفحه

5 views
Skip to first unread message

Mohammad Hossein Fayyazbakhsh

unread,
Mar 11, 2010, 2:38:48 AM3/11/10
to my_autcms

بسم الله الرّحمن الرّحیم

سلام دوستان.

من یک صفحه درست کردم به نام calendar.xhtml. چه طوری می توانم آن را با زدن آدرس در URL بیاورم؟

http://localhost:8080/autcms/calendar.xhtml

 

من این خطوط را در pages.xhtml اضافه کرده ام:

<page view-id="/calendar.xhtml">

  <action execute="#{calendarEventFullController.load}" on-postback="false"/>

</page>

ممنون، ببخشید که این سوالات ابتدایی را می پرسم.

یا علی

Mohsen Shokouhbakhsh

unread,
Mar 11, 2010, 5:59:40 AM3/11/10
to my_a...@googlegroups.com
سلام
اینجوری بزن:
http:// . . . /calender.htm

2010/3/11 Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "my_autcms" group.
To post to this group, send email to my_a...@googlegroups.com.
To unsubscribe from this group, send email to my_autcms+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/my_autcms?hl=en.

Mohammad Hossein Fayyazbakhsh

unread,
Mar 11, 2010, 11:11:55 AM3/11/10
to my_a...@googlegroups.com
بسم الله الرّحمن الرّحیم
سلام.
ممنون
3/11 Mohsen Shokouhbakhsh <m.shoko...@gmail.com>

Mohammad Hossein Fayyazbakhsh

unread,
Mar 11, 2010, 12:08:43 PM3/11/10
to my_a...@googlegroups.com
بسم الله
سلام.
ببینید، کاری که گفتید را انجام دادم، ولی کار نکرد، یعنی با توجّه به
<page view-id="/calendar.xhtml">

  <action execute="#{calendarEventFullController.load}" on-postback="false"/>

</page>

با پایگاه داده ارتباط بر قرار کرد، ولی گفت که:

Sorry, your requested page is not available.

مشکل کجاست؟
ممنون، یا علی

Khosro Asgharifard

unread,
Mar 11, 2010, 3:05:52 PM3/11/10
to my_a...@googlegroups.com
Hi,
You can put something like this in quikAcces_menu.xhml

<li><s:link value="calendar"
            view="/calendar" /></li>
and then navigate to this page by link that appears bottom of the all pages.
if again you get the error ,it seems you have a error in your xhtm files(i remember someone has the same error),please look at the eclipse console that whether there is any exception ?
Khosro.


From: Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
To: my_a...@googlegroups.com
Sent: Thu, March 11, 2010 9:08:43 AM
Subject: Re: [my_autcms] نمایش صفحه

Mohammad Hossein Fayyazbakhsh

unread,
Mar 15, 2010, 12:57:23 PM3/15/10
to my_a...@googlegroups.com

بسم الله الرّحمن الرّحیم

سلام بر همگی، عید شما مبارک!

راه حلّی را که گفتید امتحان کردم، ولی مشکم حل نشد.

صفحه ای را که فکر کنم در نوشتن آن درست کار نکردم برایتان می فرستم. خودم سعی می کنم مشکل را پیدا کنم، ولی اگر شما هم  یک نگاهی بیاندازید ممنون می شوم. فکر کنم به خاطر بی دقّتی است که صفحه نشان داده نمی شود.

یا علی

calendar.xhtml

Khosro Asgharifard

unread,
Mar 16, 2010, 1:29:02 AM3/16/10
to my_a...@googlegroups.com
Hi,
1.First  of all ,i made a big mistake in the last email that i  have send
I must have written something like this :


<li><s:link value="calendar"
            view="/calendar.xhtml" /></li>

NOT


<li><s:link value="calendar"
            view="/calendar" /></li>  

2.Maybe,it is not related to your problem but it is a question for me.I have looked at your file ,and i do not find <h:form> tag.Doesn't it needed?
3.It is hard to find a error in file,but it seems your file is OK,and there is not any error.For the last try,please comment some part of your code in xhtml file and try open the page again.Maybe you can find which part of code causes error,and repeat this task for other part of code to find error.

Khosro.

From: Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
To: my_a...@googlegroups.com
Sent: Mon, March 15, 2010 9:57:23 AM

Mohammad Hossein Fayyazbakhsh

unread,
Mar 16, 2010, 2:00:08 AM3/16/10
to my_a...@googlegroups.com
بسم الله الرّحمن الرّحیم
سلام آقا خسرو،
می روم سراغش....
ممنون، یا علی

Khosro Asgharifard

unread,
Mar 16, 2010, 2:43:42 AM3/16/10
to my_a...@googlegroups.com
Hi,
If you have still problem ,do not hesitate to report it.
Khosro.


From: Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
To: my_a...@googlegroups.com
Sent: Mon, March 15, 2010 11:00:08 PM

Mohammad Hossein Fayyazbakhsh

unread,
Mar 16, 2010, 3:20:46 AM3/16/10
to my_a...@googlegroups.com

بسم الله الرّحمن الرّحیم

سلام.

من در calendar.xhtml یک صفحه ی ساده ی html  هم که گذاشتم، کار نکرد و همان وضعیت قبلی پیش آمد. به خاطر همین فکر کنم که مشکل از یک جای دیگر است.

دوره می کنیم.

این قسمت را در pages.xml وارد کردم.

<page view-id="/calendar.xhtml">

   <action execute="#{calendarEventFullController.load}" on-postback="false"/>

 </page>

 

(گزارش اجرا شدن روال load در کنسول نشان داده می شود، که مایه ی خوشحالی است. یادتان باشد، می گفتم که این روال مشکل دارد )

و این هم لینکی که گفتید:

<li><s:link value="#{messages['menu.labs']}"

            view="/labs/list.xhtml" /></li>

<li><s:link value="calendar"

           view="/calendar.xhtml" /></li>

و این هم آدرسی که برای صفحه تولید می شود:

http://localhost:8080/autcms/IT/fa/calendar

البتّه من این آدرس را هم امتحان کردم:

http://localhost:8080/autcms/calendar.htm

و همان نتیجه را گرفتم:

Sorry, your requested page is not available.

همین، جای دیگری را دست نزده ام. دیگر کجا را باید عوض می کردم؟

ممنون، یا علی

330.gif

Khosro Asgharifard

unread,
Mar 16, 2010, 5:05:16 AM3/16/10
to my_a...@googlegroups.com
 Is there any exception in Eclipse console?
Khosro.


From: Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
To: my_a...@googlegroups.com
Sent: Tue, March 16, 2010 12:20:46 AM
330.gif

Mohammad Hossein Fayyazbakhsh

unread,
Mar 16, 2010, 10:17:51 AM3/16/10
to my_a...@googlegroups.com
بسم الله الرّحمن الرّحیم
سلام آقا خسرو.
نه هیچ چیزی نیست.
چه کار کنم؟

2010/3/16 Khosro Asgharifard <khosro_...@yahoo.com>
330.gif

Mohammad Hossein Fayyazbakhsh

unread,
Mar 16, 2010, 10:54:01 AM3/16/10
to my_a...@googlegroups.com
گفتم اگر محویات کنسول را نشانتان بدهم بد نباشد.
یا علی

2010/3/16 Mohammad Hossein Fayyazbakhsh <mh.fayy...@gmail.com>
330.gif
console.txt
Reply all
Reply to author
Forward
0 new messages