The ADF - weekends and holidays calendar in different color
Need help to change the background colors for holidays and weekends on the adf (JDeveloper 11.1.1.6) calendar.Thanks in advance.
Kala
Here are the bugs on component calendar ADF opend.
BUG 7507806 - SUPPORT a STYLE FOR CELLS weekend CALENDAR
BUG 7513694 - HYP: IMPOSSIBLE COLOR CODE DAYS
BUG 11663857 - RCUX DESIGN FOR NO COLOR CODE DAYS
Kala
Published by: Kala Patti on 19 February 2013 13:26
Tags: Java
Similar Questions
-
Why the SAN disks and drives NAS recognized differently by the computer?
Hi all;
I'm a newbie in the sharing of storage.
Why the SAN disks and drives NAS recognized differently by the computer? Computer sees SAN disks as local drives, NAS drives as network drive, even if they are all connected to the computer by the same network topology.
I knew that SAN uses the block level transfer to transfer data all in SIN use level file transfer. Is that what this has something to do with which SAN and NAS drives are recognized differently by the computer? If so, how?Thank you.
Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
http://social.technet.Microsoft.com/forums/en/w7itpronetworking/threads -
Calendar of the ADF: Drag and Drop
Dear all,
I tried to add the drag and drop functionality provided by Oracle ADF to a calendar that displays events from the database.
< af:calendar id = 'c4' value = ' #{bindings. " CalendarView1.calendarModel}.
calendarActivityListener = "#{CalendarBean.activityListener}" > "
< af:calendarDropTarget dropListener = "#{CalendarBean.handleDrop}" action = "MOVE" / > "
< / af:calendar >
The "CalendarBean" code is that provided in the Oracle ADF Faces "DemoCalendarBean.java" demo application
Unfortunately, the following error occurs "oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$ AdfmCalendarActivity cannot be cast to oracle.adfdemo.view.calendar.rich.model.DemoCalendarActivity.
Can anyone advise a solution
Thanks in advance
Concerning
Hello
Start with the calendar using Oracle demonstrations certainly seem convoluted - I did the same thing. I had to interpret what the demo was trying more of in the java code in general, and then write my own code. Below, I have the code that works for my clients.
1.) tag add calendar Drop target within your calendar.
2.) create your listener to drop in a managed bean (make sure that your method is mapped into the target calendar Drop). Note the areas where I've "updated HERE". I had fun with the data conversions that you see
Updated - this must go in your bean example. You can of course do this dynamic, but for now, it should work.
currTimeZone private zone is TimeZone.getTimeZone (' America/Detroit');.
This card to your target calendar drop tag
public DnDAction handleDrop (DropEvent dropEvent) {}
Method to handle the Drag and Drop feature calendar
Return _handleDrop (dropEvent, false);
}
public DnDAction _handleDrop (DropEvent dropEvent, showPopup boolean) {}
Drag and drop (mailable)
Transferable transferable = dropEvent.getTransferable ();
CalendarDropSite dropSite = (CalendarDropSite) dropEvent.getDropSite ();
DropSiteDate date = dropSite.getDate ();
CalendarActivity.TimeType timeType = dropSite.getTimeType ();
Civil activity
Activity CalendarActivity = (CalendarActivity) transferable.getData (DataFlavor.getDataFlavor (CalendarActivity.class));
If (activity! = null) {}
_handleCalendarActivityDrop (dropEvent, dropSiteDate, activity, showPopup);
Return dropEvent.getProposedAction ();
}
Return DnDAction.NONE;
}
private _handleCalendarActivityDrop Sub (DropEvent dropEvent, dropSiteDate Date, CalendarActivity activity, boolean showPopup) {}
Current start date Info get an activity
Date startDate;
startDate = activity.getStartDate (currTimeZone);
Calendar startCal = Calendar.getInstance (currTimeZone);
startCal.setTime (startDate);
Obtain the primary key of the calendar item as we move
String rowPK = activity.getId (m:System.NET.SocketAddress.ToString ());
int startDayOfYear = startCal.get (Calendar.DAY_OF_YEAR);
int startHour = startCal.get (Calendar.HOUR_OF_DAY);
int startMin = startCal.get (Calendar.MINUTE);
int startYear = startCal.get (Calendar.YEAR);
Get current Info from Date of end of the activity
Date endDate;
endDate = activity.getEndDate (currTimeZone);
Calendar endCal = Calendar.getInstance (currTimeZone);
endCal.setTime (endDate);
int endDayOfYear = endCal.get (Calendar.DAY_OF_YEAR);
int endHour = endCal.get (Calendar.HOUR_OF_DAY);
int endMin = endCal.get (Calendar.MINUTE);
int endYear = endCal.get (Calendar.YEAR);
Download New Start Date object dropSiteDate Info
Calendar dropCal = Calendar.getInstance (currTimeZone);
dropCal.setTime (dropSiteDate);
int dropDayOfYear = dropCal.get (Calendar.DAY_OF_YEAR);
int dropHour = dropCal.get (Calendar.HOUR_OF_DAY);
int dropMint = dropCal.get (Calendar.MINUTE);
int dropYear = dropCal.get (Calendar.YEAR);
calculation variables
long eventDelta = 0;
int newEndDayOfYear = 0;
Check if there is any change with the start date new old vs.
If (startDayOfYear! = dropDayOfYear) {}
Get the value of delta beginning-enddate
eventDelta = endCal.getTime () .getTime () - startCal.getTime () .getTime ();
Info set start date (Leaving time infact info)
startCal.set (Calendar.DAY_OF_YEAR, dropDayOfYear);
startCal.set (Calendar.YEAR, dropCal.get (Calendar.YEAR));
startCal.set (Calendar.MONTH, dropCal.get (Calendar.MONTH));
calculate the new endDate
Day newEndDate = new Date (startCal.getTime () .getTime () + eventDelta);
endCal.setTime (newEndDate);
reformat the start date, just in case.
Trainer SimpleDateFormat;
Formatter = new SimpleDateFormat ("yyyy-MM-DD hh: mm:." "") « « S ») ;
Date newStartDate;
newStartDate = new Date (startCal.getTime () .getTime ());
Formatter.format (newStartDate);
Take the iterator that is used for the calendar
DCBindingContainer dcbindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
UPDATE HERE - the name of your iterator binding your view calendar object
Iterator DCIteratorBinding = dcbindings.findIteratorBinding ("NameOfYourViewObjectIterator");
Get lines of database that uses the iterator
Line lines [] = iterator.getAllRowsInRange ();
Line currentRow = iterator.getCurrentRow ();
Must make sure that we have the iterator on the right line
If (rows.length > 0) {}
for (int i = 0; i)< rows.length;="" i++)="">
Updated HERE - this is a primary key for your view object
If (rows [i].getAttribute("Id").toString () .equals (rowPK)) {}
We found the line, now exit loop and move forward
currentRow = lines [i];
break;
}
}
}
If (currentRow! = null) {}
Get the binding of operations
CHECK to make sure that you have a validation link on your Page Def
OperationBinding commitBinding = dcbindings.getOperationBinding ("Commit");
/ Date start and end Date for the line that we are changing the value
* We need to create an oracle.jbo.domain.Timestamp because the view entity object using oracle.jbo.domain.Date
* oracle.jbo.domain.Date does not accept that the oracle.jbo.domain.Timestamp, which stamp accepts java.util.Date
*/
Start date of new game
Timestamp newStartDateTs;
newStartDateTs = new Timestamp (newStartDate.getTime ());
UPDATE HERE - launched date field
currentRow.setAttribute ("Startdate", newStartDateTs);
New defined end date
Timestamp newEndDateTs;
newEndDateTs = new Timestamp (newEndDate.getTime ());
UPDATE HERE - launched date field
currentRow.setAttribute ("Enddate", newEndDateTs);
Perform field validation against currently modified line
try {}
currentRow.validate ();
} catch (Exception e) {}
System.out.println (e);
Restore all changes so there is no garbage data is entered into the database
currentRow.refresh (Row.REFRESH_UNDO_CHANGES);
return;
}
Run the validation on the database operation
commitBinding.execute ();
Look for errors during validation: If no errors, then update calendar
If (commitBinding.getErrors () .isEmpty ()) {}
Refresh the calendar client in order to reflect the new changes
RequestContext adfContext = RequestContext.getCurrentInstance ();
adfContext.addPartialTarget (getCalendarComponent ());
} else {}
currentRow.refresh (Row.REFRESH_UNDO_CHANGES);
}
} else {}
Nothing to do here.
}
}
}
protected RichCalendar getCalendarComponent() {}
FacesContext context = FacesContext.getCurrentInstance ();
UIComponent root = context.getViewRoot ();
Hard-coded id for the moment, but that can be loaded dynamically.
UPDATE your schedule component JSPX HERE - id
return (RichCalendar) root.findComponent ("c1");
}
(3.) If can't remember off hand imports, if you have a problem let me know, I'll send a list of what I have.
I hope this helps. Good luck!
Gavin
-
Problems with the e-mails and windows calendar
Laptop computer Windows on this new calendar is denied access so how do I access and I can't receive emails only to send them. What is this problem?
Problem must be the wrong configuration. Visit the support for the messaging provider page. You will find all the info on the good account and server configuration.
You try to configure Windows Mail?
If you need some useful tips, visit http://www.microsoft.com/windows/products/windowsvista/features/details/mail.mspxGood bye
-
I'm a newcomer to Adobe Photoshop Lightroom CC 2015.4 but found after importing photo in the window to develop and duplication of the view forward and after that, the photo is different from the original before even I did any changes. Surely, they should be the same. Is it normal or I do something wrong?
Well, it's a shot in the water, but I think it was affecting a case recently where a defective monitor due to profile either the front or after the image do not display at all, so I thought the sRGB monitor profile could be worth trying.
-
Hello, I have a problem with the ADF and EI. I use jdev 11.1.1.5.
The problem of the compatibility mode. In firefox and crome works well.
"The current compatibility setting is not supported. Turn off compatibility view before you run this web pageIn Internet Explorer, press F12 and adjust the browser Mode and Document to the same value (IE8 & IE8 Standards, for example)
-
With my Nikon D5000 DSLR camera I took recently photos of small blue flowers. I had mounted my Nikon D5000 to create for each photo a NEF file and a JPEG file (and had set my camera to use only automatic while Balance).
I noticed that for NEF files Lightroom 2.6 (and also PSE 7, which use internal Camera RAW) shows me the blue colours of the flowers quite different from what I see with PSE for the jpeg file. I feel, that it is in Jpeg files, the blue color is close to reality; and that's with files NAVE that Lightroom and PES show a blue colour which are quite different from the reality.
I also watched the photo files with the 'View Nx"1.3.0 NIKON software that came with my camera. With 'View Nx' colors Blue (both with NEF and Jpeg files) are very vlose than what I see with PSE 7 in the jpeg file (and quite different from what I see with LR and PSE for the.) NEF file).
I mentioned this problem using Nikon. They suggested that the software software Nikon and Adobe use different algorithms; and Nikon algorithms are better/more fit for Nikon cameras than more generalized algorithms for Adobe that need to be supported a very large number of cameras.
But... .it is Lightroom I want to use to process my files NAVE and PSE I want to organize my Photos. An expert in LR/Camera-RAW can help me? I would like to find a way to do with LR and PSE in my files of Photo D5000 NAVE of blue colors that are close to reality, and close this software Nikon shows me on my PC. Please note that I am far from being a professional and that I understand probably not explain complicated.
Thank you very much in advance.
An additional note, this is perhaps not relevant: I have used LR to convert my NEF file to a JPEG file format and looked blue in the result. Looks the same as what LR and PES show me to the. NAVE file (and seems different from the crreated the NIKON camera jpeg file).
One of the colors on the standard "ColorChecker" target is blue-flower blue, so they would be aware of how 'far' color can be in certain situations. Without seeing the photo in question, it is not easy to guess if there is some special circumstance that makes this particular set of photos not close to reality for you.
Another thing that can affect the color rendering is that you have any custom-curves or any other color of active treatment in your camera, even things that the d-lighting affects a bit, but none of these processing parameters specific to the Nikon in your camera apply to format RAW Adobe conversions because Adobe has no idea how the Nikon software works.
If you are concerned about your RAW and JPG is not the same thing, then one suggestion would be to define the Standard default camera profile in LR to your Nikon camera. I did until I got a ColorChecker passport and was able to make my own color profiles that are even closer to what I want.
Remember that making a profile of the camera is an art at least as much as a science in order to make some colors look more correct in various colors of lighting can make others seem less correct. I suspect that the Adobe Standard profile is optimized for the color of skin is the best, because human perception is very sensitive to people who are just looking or not, but less able to say if a blue flower is right if they weren't really there. I usually take pictures of nature subjects, not people and quit using the Adobe Standard once the camera-match profile those who were released a few years ago.
If you had several models of Nikon cameras and other renderings blue flowers much better than your D5000 so this is maybe a reason to ask Adobe to take another look. If you had not taken a JPG to compare with your FIRST, would the blue flowers look bothered you or not?
-
How to find outside the prasent weekend and beginning of the week
How can I find out the date of early this week, but also the end of the week for one week to present?
Say for example:
Today date is 1 MS, so I want the beginning of this week is August 31, 2009 and the end of week date is 6 eme Sep 2009 how can I slove this problem?
Please answer as soon as possible...
Thanks and greetings
-----
Jitendra.B
int d, d1;
String dat = «;»
Date jj = new Date();
Date dt = new Date (dd.getTime ());
Calendar c = Calendar.getInstance ();
c.setTime (dt);
d = c.get (Calendar.DAY_OF_WEEK);
D1 = c.get (Calendar.DAY_OF_MONTH);
int start; end;
Switch (d)
{
case Calendar.MONDAY: start = 1; end = 7
break;
case Calendar.TUESDAY: start = 2; end = 7
break;
case Calendar.WEDNESDAY: start = 3; end = 7
break;
case Calendar.THURSDAY: start = 4; end = 7
break;
case Calendar.FRIDAY: start = 5; end = 7
break;
case Calendar.SATURDAY: start = 6; end = 7
break;
case Calendar.SUNDAY: start = 7; end = 7
break;
}now u came to know the day of the week... now u easily discovered the beginning and end date... do not forget the day startr of the week is Sunday...
Kind regards
bbbbdeveloper
-
Why are they the Web viewer and device sign in different boxes?
We create an AEM application that uses right V2. I just noticed that the sign in the dialog box for the Web Viewer looks like this:
But the sign in for iOS devices dialog box looks like this:
Ask yourself why they are different? Differences that matter to us:
1. the screen of the Tablet says "Username" but Viewer says Web 'Email address' (we prefer email address)
2. the screen of the Tablet is not a link "create an account", but the Web viewer don't. This is important. We need this.
Is it possible to make these screens match? Why are they different?
Thank you.
Keith, the 'create an account' link on iOS is in the 'Account' dialog box, under the button "connect". iOS is the only application that has a dialog account, because iOS has a few other configuration options to manage the different store not present scenarios on other platforms. Do you not observe it at this place?
About the chain, the difference is involuntary. User name is the more generic term and one we use throughout all the viewers of the mobile device. We chose the username because some authentication providers do not require an email address, so he labelling 'e-mail address' may be incorrect.
-
Region of the ADF, submit and problem of navigation buttons
Hello world
My JDev is 11.1.1.7
I have a jspx page and it has a region.
There is an af:table, an af:form with navigation buttons and submit buttons in the region. When I run the page jspx, region is working.
When I chose a table row, form updates. There is no problem here!
But, when I want to use the buttons, for example, I used the navigation or submit buttons. Nothing happens.
How can I solve this problem?
Thank you
There is an af:table, an af:form with navigation buttons and submit buttons in the region.
When I read that part once again, it's not very clear is your table inside the af: form or not.
You should have that one af:form in the hierarchy of the pages and everything must be placed inside this form.
Dario
-
Withdrawal of the 2nd computer and reinstall it on different laptop
How is that possible?
I have been implemented on 2 laptops, of which 1 was damaged so I removed all the software and the need to move it to another machine.
When you try it says that I have installed on 2 machines and I can't add a 3rd
Please tell me there is something I can do to disassociate my laptop broke and the software on the 2nd as I have a guard at the House and move with me if you really need.
Thank you
Gareth
Hi gbh80,
You can continue to install applications on 3rd machine. It will prompt you with a message that your subscription is already active on 2 machines, and you will also have an option to turn off other machines. Proceed to the deactivation of all computers. Once done, you will need to sign in again on the other (2nd machine) on which you want to continue using.
Kind regards
Nirvek
-
Eliminating the weekends and the user defined holidays.
Hi, this is my query so far:
WITH cla_case AS
(SELECT 1 event_no, to_date('01/10/2011','dd/mm/yyyy') discover_date, to_date (' 02/10/2011 ',' dd/mm/yyyy') notification_date of all the double union)
Select double union all 2 event_no, to_date('02/10/2011','dd/mm/yyyy') discover_date, to_date('03/10/2011','dd/mm/yyyy') notification_date
SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') discover_date, to_date('04/10/2011','dd/mm/yyyy') notification_date double
),
cla_event AS
(SELECT 1 event_no, to_date (' 02/10/2011 ',' dd/mm/yyyy') incident_date of all the double union)
SELECT event_no 2, to_date (' 02/10/2011 ',' dd/mm/yyyy') incident_date of all the double union
SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') incident_date of the double
)
SELECT
round (cc.notification_date - GREATEST (cc.discover_date, ce.incident_date)) Days_To_Report
Of
cla_case cc,
cla_event this
WHERE
CC.cla_event_no = ce.cla_event_no
Problem is that I must first eliminate the weekends and holidays then. I read on creating a calendar where you list the holidays, but I have no idea how to do this.
Here is the link for the South African holidays: http://www.blaauwberg.net/public_holidays.php it's for 2010-2012. I'm going to need in 2008, but I find this info at a later stage.
Thank you!
Banner:
Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production."
AMT for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionHello
So, if you have already run the insert
INSERT INTO non_working_days ( day, day_type ) SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SATURDAY') day, 'WEEKEND' day_type FROM dual connect by level <=500 UNION ALL SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SUNDAY') day, 'WEEKEND' day_type FROM dual connect by level <=500 / 1000 rows created.
all you need to do is remove this bit of the query
non_working_days AS ( SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SATURDAY') day, 'WEEKEND' day_type FROM dual connect by level <=500 UNION ALL SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SUNDAY') day,'WEEKEND' day_type FROM dual connect by level <=500 )
Everything that was done was to create a table on the fly for the purpose of showing the issue. If your query can be simply
WITH cla_case AS ( SELECT 1 cla_event_no, to_date('01/10/2011','dd/mm/yyyy') discover_date, to_date('10/10/2011','dd/mm/yyyy') notification_date from dual union all SELECT 2 cla_event_no, to_date('02/10/2011','dd/mm/yyyy') discover_date, to_date('13/10/2011','dd/mm/yyyy') notification_date from dual union all SELECT 3 cla_event_no, to_date('03/10/2011','dd/mm/yyyy') discover_date, to_date('14/10/2011','dd/mm/yyyy') notification_date from dual ), cla_event AS ( SELECT 1 cla_event_no, to_date('02/10/2011','dd/mm/yyyy') incident_date from dual union all SELECT 2 cla_event_no, to_date('03/10/2011','dd/mm/yyyy') incident_date from dual union all SELECT 3 cla_event_no, to_date('04/10/2011','dd/mm/yyyy') incident_date from dual ) SELECT e.cla_event_no, e.days_to_report, e.days_to_report - COUNT(nwd.day) working_days_to_report FROM ( SELECT cc.cla_event_no, GREATEST(cc.discover_date,ce.incident_date) start_date, cc.notification_date end_date, round(cc.notification_date - GREATEST(cc.discover_date,ce.incident_date)) Days_To_Report FROM cla_case cc, cla_event ce WHERE cc.cla_event_no = ce.cla_event_no ) e LEFT OUTER JOIN non_working_days nwd ON( nwd.day BETWEEN TRUNC(e.start_date) AND TRUNC(e.end_date)) GROUP BY e.cla_event_no, e.days_to_report /
-
Deploy the ADF - BC on different JVM (not a cluster) and update the same row
Hi experts,
I have a question for the locking of ADF BC. Suppose I have a web application that you want to add using add-British Colombia. And the web service interface is enabled for ADF - BC. In this case, what happens if I try to deploy as follows
Deploy the web application ADF with add - bc on a JAVA virtual machine and the other JVM deploy only the Add-bc with active web service. In this case how the locking of the database will work. Incase if I change the line in the ADF, faces and then try to update the same line using the web service in the another JVM. Framework will lift the ADF line locked by an other user error? Or the locking works only if both are on the same virtual machine JAVA or deployment in the cluster?
Thank youIt depends on how you define your lock mode to work in British Colombia of ADF - but assuming you are using optimistic locking - it will be work well since the ADF BC lock will check whether the data in the DB has changed and then throws an exception in letting you know on the subject.
http://docs.Oracle.com/CD/E24382_01/Web.1112/e16182/bcstatemgmt.htm#BABHBIAB -
All-in-one HP 1536dnf: cannot scan from the ADF and glass to a single PDF file
Hello
There is a user who needs to scan some papers, but he wanted to do the following:
-scan of the papers of the ADF
and
-scan of glass papers
and he wanted to merge all this into a single PDF file.
The announcement of the user he could do before, we implemented a new computer.
On my side, I did the installation of the drivers and as the default scanning software and indeed the scan works, but once you star scanning from ADF he will not identify any which paper on the glass and displays the message "no book on ADF.
And when you start scanning from glass it will identify ADF even if there are some papers. Instead, it will scan the same page, if she stays or it will scan empty.
Well. It became a long text, but any help will be welcome.
Thanks in advance
Hello
It works this way because they are TWO different operations. There are a few free software around which allows us to merge several PDF files into one file. You should probably do this way. The following link is one of them:
http://www.PDFSam.org/download/
This free product allows you to divide a large file to many small files (such as the extraction of the chapters of a thick book) and also merge several pdf files into a pdf file.
Note: use the free.
Kind regards.
-
I try to print the task and windows calendar notes
can you print the task pane and windows calendar notes
Hello kevcokev2,
Thanks for posting on the Microsoft answers Forum.
Have you tried option Print Screen on your keyboard to print the task pane and notes?
Who would print the entire area. I don't see an option to print just the tasks or notes.Answer please come back and let us know.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think
Maybe you are looking for
-
It says sync on, but I was not asked for the code "pair device".
I have the code of pc1 but pc2 has already said "sync on. Aren't my favorites from pc1 on pc2. What should I do? Mick
-
Satellite A30-414 turn off randomly
Hi, I'm new here. I own this Satellite A30-414. It works well, but it turns off randomly. I explain. I might use it for non-stop days, it works well, but sometimes it empties and turns off. Then it always turns on the second attempt. I mean, after th
-
Touch screen of my flex of ideapad computer 14 "laptop broke. I don't know how it happened. Kindly help me how I can fix and what I would do to this topic.
-
Windows 7-Windows 7 RDP Session
Hi all To be honest, I'm puzzled. When I try to RDP from Windows 7 machine to another Windows 7 machine it opens and displays "Please wait...". "and immediately disconnects. Until now I have not had problems with this scenario and it does it on the l
-
BlackBerry curve Smartphones 9320 200 after update error message
My phone died now :-( When I connect my phone to the desktop software this morning he gave me an update message. I've dutifully updated - and my phone is dead. I removed all office cleaned of all other files and reloaded software but still not you