Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
URL field in Announcements Portlet Captain Keen 6. August 2010 05:44
RE: URL field in Announcements Portlet Shagul Khajamohideen 6. August 2010 05:35
RE: URL field in Announcements Portlet Aaron East 9. August 2010 12:56
RE: URL field in Announcements Portlet Shagul Khajamohideen 9. August 2010 18:40
RE: URL field in Announcements Portlet Captain Keen 10. August 2010 03:09
RE: URL field in Announcements Portlet Shagul Khajamohideen 10. August 2010 04:08
RE: URL field in Announcements Portlet Aaron East 10. August 2010 07:00
RE: URL field in Announcements Portlet Shagul Khajamohideen 10. August 2010 08:30
RE: URL field in Announcements Portlet Captain Keen 20. August 2010 03:34
RE: URL field in Announcements Portlet Ryan Lubben 10. November 2010 08:48
RE: URL field in Announcements Portlet Joan cuadros 29. Dezember 2010 02:15
RE: URL field in Announcements Portlet Gert Christiansen 20. Januar 2011 00:26
RE: URL field in Announcements Portlet L P 4. Februar 2011 02:55
RE: URL field in Announcements Portlet Szymon Gołębiewski 4. Februar 2011 06:14
RE: URL field in Announcements Portlet Christian Schefer 27. Mai 2011 12:26
RE: URL field in Announcements Portlet Hitoshi Ozawa 28. Mai 2011 16:27
RE: URL field in Announcements Portlet Christian Schefer 30. Mai 2011 09:55
RE: URL field in Announcements Portlet Cory Church 16. Dezember 2011 16:00
RE: URL field in Announcements Portlet Alessandro Trosino 16. November 2011 07:10
RE: URL field in Announcements Portlet Zeeshan Khan 27. März 2012 21:54
Captain Keen
URL field in Announcements Portlet
6. August 2010 05:44
Antwort

Captain Keen

Rang: New Member

Nachrichten: 21

Eintrittsdatum: 26. Juli 2010

Neue Beiträge

Hi, is it possible to make announcements without filling the URL field?

I only want to use announcements for short messages without a link to a
special page.


Im using the latest nightly relase Liferay 6.0.5
Anhang

Anhänge: Announcement_URL_missing.JPG (36,1k)
Shagul Khajamohideen
RE: URL field in Announcements Portlet
6. August 2010 05:35
Antwort

Shagul Khajamohideen

Rang: Liferay Master

Nachrichten: 759

Eintrittsdatum: 27. September 2007

Neue Beiträge

Do you see any issues? I don't think URL is a mandatory field.
Aaron East
RE: URL field in Announcements Portlet
9. August 2010 12:56
Antwort

Aaron East

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 9. August 2010

Neue Beiträge

I have the same problem, in earlier versions of the announcments and alerts portlet the URL was not required. Most if not all of our announcments are just a little text that do not need to be redirected to a URL.
Shagul Khajamohideen
RE: URL field in Announcements Portlet
9. August 2010 18:40
Antwort

Shagul Khajamohideen

Rang: Liferay Master

Nachrichten: 759

Eintrittsdatum: 27. September 2007

Neue Beiträge

Probably you could watch the below JIRA ticket.

http://issues.liferay.com/browse/LPS-10263

Based on the latest code, it does not look like the field is mandatory. URL is validated only when it is not null (not empty).
Captain Keen
RE: URL field in Announcements Portlet
10. August 2010 03:09
Antwort

Captain Keen

Rang: New Member

Nachrichten: 21

Eintrittsdatum: 26. Juli 2010

Neue Beiträge

Its defenatly a mandatory field in v6.0.x . he wont let me go on until i enter a valid url.
Shagul Khajamohideen
RE: URL field in Announcements Portlet
10. August 2010 04:08
Antwort

Shagul Khajamohideen

Rang: Liferay Master

Nachrichten: 759

Eintrittsdatum: 27. September 2007

Neue Beiträge

I see the code now. Not sure if it is intentional. I think, URL validation should only happen when there is some entry in the URL field.
Aaron East
RE: URL field in Announcements Portlet
10. August 2010 07:00
Antwort

Aaron East

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 9. August 2010

Neue Beiträge

Hmm, still doesn't look like it is fixed. I downloaded the nightly build.

liferay-portal-tomcat-2010-08-10.zip 10-Aug-2010 04:42 134M

And still I am required to add a URL
Shagul Khajamohideen
RE: URL field in Announcements Portlet
10. August 2010 08:30
Antwort

Shagul Khajamohideen

Rang: Liferay Master

Nachrichten: 759

Eintrittsdatum: 27. September 2007

Neue Beiträge

The code does mandate valid URL be entered. I have updated the ticket. My guess is, the check when URL is empty seems unintended unless someone from Liferay can confirm that it is intended.
Captain Keen
RE: URL field in Announcements Portlet
20. August 2010 03:34
Antwort

Captain Keen

Rang: New Member

Nachrichten: 21

Eintrittsdatum: 26. Juli 2010

Neue Beiträge

This Bug iss still not fixed in 6.0.5. Could anyone solve this
annoying Bug? its such a simple one....
Ryan Lubben
RE: URL field in Announcements Portlet
10. November 2010 08:48
Antwort

Ryan Lubben

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 18. September 2010

Neue Beiträge

Still having this problem with 6.0.5. Please fix.
Joan cuadros
RE: URL field in Announcements Portlet
29. Dezember 2010 02:15
Antwort

Joan cuadros

Rang: New Member

Nachrichten: 9

Eintrittsdatum: 30. November 2010

Neue Beiträge

I have the same problem. Please fix.
Gert Christiansen
RE: URL field in Announcements Portlet
20. Januar 2011 00:26
Antwort

Gert Christiansen

Rang: New Member

Nachrichten: 7

Eintrittsdatum: 9. April 2010

Neue Beiträge

Ran in to the same problem with 6.0.5. Haven't tried a checkout of the nightly, but made a small change against the source for 6.0.5

The only change is in line 541 of AnnouncementsEntryLocalServiceImpl.java from

if (!Validator.isUrl(url)) {

to

if ((url.length() > 0) && !Validator.isUrl(url)) {

Not sure if this has been corrected in the current development version or if the change I made is the correct way, but it seems to work.

Copy the attached AnnouncementsEntryLocalServiceImpl.class to your WEB-INF/classes structure to overload the one from the war file.

Mine is at /opt/liferay/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl

I restarted Liferay to make sure the extra file was loaded.

Use at your own risk.

Regards,
Gert
Anhänge: AnnouncementsEntryLocalServiceImpl.class (17,9k)
L P
RE: URL field in Announcements Portlet
4. Februar 2011 02:55
Antwort

L P

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 15. April 2009

Neue Beiträge

Gert Christiansen:

Copy the attached AnnouncementsEntryLocalServiceImpl.class to your WEB-INF/classes structure to overload the one from the war file.

Mine is at /opt/liferay/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl

I restarted Liferay to make sure the extra file was loaded.




Works like a charm, thanks!
Szymon Gołębiewski
RE: URL field in Announcements Portlet
4. Februar 2011 06:14
Antwort

Szymon Gołębiewski

Rang: Regular Member

Nachrichten: 247

Eintrittsdatum: 8. Juni 2009

Neue Beiträge

Gert Christiansen:
Ran in to the same problem with 6.0.5. Haven't tried a checkout of the nightly, but made a small change against the source for 6.0.5

The only change is in line 541 of AnnouncementsEntryLocalServiceImpl.java from

if (!Validator.isUrl(url)) {

to

if ((url.length() > 0) && !Validator.isUrl(url)) {

Not sure if this has been corrected in the current development version or if the change I made is the correct way, but it seems to work.

Copy the attached AnnouncementsEntryLocalServiceImpl.class to your WEB-INF/classes structure to overload the one from the war file.

Mine is at /opt/liferay/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl

I restarted Liferay to make sure the extra file was loaded.

Use at your own risk.

Regards,
Gert


I think you should submitt a ticket in liferay JIRA and add this as Community Contribution. This patch is awesome.
Christian Schefer
RE: URL field in Announcements Portlet
27. Mai 2011 12:26
Antwort

Christian Schefer

Rang: New Member

Nachrichten: 19

Eintrittsdatum: 27. Mai 2011

Neue Beiträge

Hi,

I have the same problem, i'm using Windows Server 2003 and the Liferay Bundle with Tomcat. I dont know where to put that file. Could you help me to implement in my environment please?

I didn't found the tree structure "../tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl"

Thank you!!

Christian
Hitoshi Ozawa
RE: URL field in Announcements Portlet
28. Mai 2011 16:27
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

You really should be creating a ext plugin for this instead of changing the Liferay class file directly.

But that said, the class file is at
"../tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar"
Open up this jar file and the class file is in the following folder:
"com/liferay/portlet/announcements/service/impl"
Christian Schefer
RE: URL field in Announcements Portlet
30. Mai 2011 09:55
Antwort

Christian Schefer

Rang: New Member

Nachrichten: 19

Eintrittsdatum: 27. Mai 2011

Neue Beiträge

Hitoshi Ozawa:
You really should be creating a ext plugin for this instead of changing the Liferay class file directly.

But that said, the class file is at
"../tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar"
Open up this jar file and the class file is in the following folder:
"com/liferay/portlet/announcements/service/impl"


Thanks!!

It works for me!!
Alessandro Trosino
RE: URL field in Announcements Portlet
16. November 2011 07:10
Antwort

Alessandro Trosino

Rang: New Member

Nachrichten: 14

Eintrittsdatum: 25. Oktober 2011

Neue Beiträge

Gert Christiansen:
Ran in to the same problem with 6.0.5. Haven't tried a checkout of the nightly, but made a small change against the source for 6.0.5

The only change is in line 541 of AnnouncementsEntryLocalServiceImpl.java from

if (!Validator.isUrl(url)) {

to

if ((url.length() > 0) && !Validator.isUrl(url)) {

Not sure if this has been corrected in the current development version or if the change I made is the correct way, but it seems to work.

Copy the attached AnnouncementsEntryLocalServiceImpl.class to your WEB-INF/classes structure to overload the one from the war file.

Mine is at /opt/liferay/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl

I restarted Liferay to make sure the extra file was loaded.

Use at your own risk.

Regards,
Gert


link for download doesn't work
Cory Church
RE: URL field in Announcements Portlet
16. Dezember 2011 16:00
Antwort

Cory Church

Rang: New Member

Nachrichten: 8

Eintrittsdatum: 15. Dezember 2011

Neue Beiträge

Christian Schefer:
Hitoshi Ozawa:
You really should be creating a ext plugin for this instead of changing the Liferay class file directly.

But that said, the class file is at
"../tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar"
Open up this jar file and the class file is in the following folder:
"com/liferay/portlet/announcements/service/impl"


Thanks!!

It works for me!!



Worked like a charm in the latest stable build. Thank you.
Zeeshan Khan
RE: URL field in Announcements Portlet
27. März 2012 21:54
Antwort

Zeeshan Khan

Rang: Expert

Nachrichten: 349

Eintrittsdatum: 20. Juli 2011

Neue Beiträge

Gert Christiansen:
Ran in to the same problem with 6.0.5. Haven't tried a checkout of the nightly, but made a small change against the source for 6.0.5

The only change is in line 541 of AnnouncementsEntryLocalServiceImpl.java from

if (!Validator.isUrl(url)) {

to

if ((url.length() > 0) && !Validator.isUrl(url)) {

Not sure if this has been corrected in the current development version or if the change I made is the correct way, but it seems to work.

Copy the attached AnnouncementsEntryLocalServiceImpl.class to your WEB-INF/classes structure to overload the one from the war file.

Mine is at /opt/liferay/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/announcements/service/impl

I restarted Liferay to make sure the extra file was loaded.

Use at your own risk.

Regards,
Gert




awsome post Gert !!

thanks a ton !!